package org.dean.webapps.projectname.exception;

import org.dean.webapps.projectname.utils.URLUtils;

/**
 * Created by IntelliJ IDEA.
 * User: dean
 * Date: 8/29/11
 * Time: 7:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class GenericException extends Exception {
    private String message;

    private String contextPath = URLUtils.getServerContextPath();

    public GenericException(String message){
        super(message);
        this.message = message;

    }

    public GenericException(String message, Throwable ex){
        super(message, ex);
        this.message = message;
    }

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
